import java.util.Scanner;

public class Demo04 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        int k = 2;
        System.out.print(num + "=");
        while (num != k){
            if (num % k == 0){
                System.out.print(k + "*");
                num /= k;
            }else {
               k += 1;
            }
        }
        System.out.println(num);
    }
}
